Optimal. Leaf size=203 \[ \frac {b^2 \left (48 a^2-16 a b+3 b^2\right ) \tanh ^{-1}\left (\frac {\sqrt {a-b} \tanh (c+d x)}{\sqrt {a}}\right )}{8 a^{5/2} (a-b)^{9/2} d}+\frac {(a-4 b) \tanh (c+d x)}{(a-b)^4 d}-\frac {\tanh ^3(c+d x)}{3 (a-b)^3 d}+\frac {b^4 \tanh (c+d x)}{4 a (a-b)^4 d \left (a-(a-b) \tanh ^2(c+d x)\right )^2}-\frac {(16 a-3 b) b^3 \tanh (c+d x)}{8 a^2 (a-b)^4 d \left (a-(a-b) \tanh ^2(c+d x)\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.25, antiderivative size = 203, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 5, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.217, Rules used = {3270, 398,
1171, 393, 214} \begin {gather*} -\frac {b^3 (16 a-3 b) \tanh (c+d x)}{8 a^2 d (a-b)^4 \left (a-(a-b) \tanh ^2(c+d x)\right )}+\frac {b^2 \left (48 a^2-16 a b+3 b^2\right ) \tanh ^{-1}\left (\frac {\sqrt {a-b} \tanh (c+d x)}{\sqrt {a}}\right )}{8 a^{5/2} d (a-b)^{9/2}}+\frac {b^4 \tanh (c+d x)}{4 a d (a-b)^4 \left (a-(a-b) \tanh ^2(c+d x)\right )^2}-\frac {\tanh ^3(c+d x)}{3 d (a-b)^3}+\frac {(a-4 b) \tanh (c+d x)}{d (a-b)^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 214
Rule 393
Rule 398
Rule 1171
Rule 3270
Rubi steps
\begin {align*} \int \frac {\text {sech}^4(c+d x)}{\left (a+b \sinh ^2(c+d x)\right )^3} \, dx &=\frac {\text {Subst}\left (\int \frac {\left (1-x^2\right )^4}{\left (a-(a-b) x^2\right )^3} \, dx,x,\tanh (c+d x)\right )}{d}\\ &=\frac {\text {Subst}\left (\int \left (\frac {a-4 b}{(a-b)^4}-\frac {x^2}{(a-b)^3}+\frac {b^2 \left (6 a^2-4 a b+b^2\right )-4 (a-b) (3 a-b) b^2 x^2+6 (a-b)^2 b^2 x^4}{(a-b)^4 \left (a+(-a+b) x^2\right )^3}\right ) \, dx,x,\tanh (c+d x)\right )}{d}\\ &=\frac {(a-4 b) \tanh (c+d x)}{(a-b)^4 d}-\frac {\tanh ^3(c+d x)}{3 (a-b)^3 d}+\frac {\text {Subst}\left (\int \frac {b^2 \left (6 a^2-4 a b+b^2\right )-4 (a-b) (3 a-b) b^2 x^2+6 (a-b)^2 b^2 x^4}{\left (a+(-a+b) x^2\right )^3} \, dx,x,\tanh (c+d x)\right )}{(a-b)^4 d}\\ &=\frac {(a-4 b) \tanh (c+d x)}{(a-b)^4 d}-\frac {\tanh ^3(c+d x)}{3 (a-b)^3 d}+\frac {b^4 \tanh (c+d x)}{4 a (a-b)^4 d \left (a-(a-b) \tanh ^2(c+d x)\right )^2}-\frac {\text {Subst}\left (\int \frac {-b^2 \left (24 a^2-16 a b+3 b^2\right )+24 a (a-b) b^2 x^2}{\left (a+(-a+b) x^2\right )^2} \, dx,x,\tanh (c+d x)\right )}{4 a (a-b)^4 d}\\ &=\frac {(a-4 b) \tanh (c+d x)}{(a-b)^4 d}-\frac {\tanh ^3(c+d x)}{3 (a-b)^3 d}+\frac {b^4 \tanh (c+d x)}{4 a (a-b)^4 d \left (a-(a-b) \tanh ^2(c+d x)\right )^2}-\frac {(16 a-3 b) b^3 \tanh (c+d x)}{8 a^2 (a-b)^4 d \left (a-(a-b) \tanh ^2(c+d x)\right )}+\frac {\left (b^2 \left (48 a^2-16 a b+3 b^2\right )\right ) \text {Subst}\left (\int \frac {1}{a+(-a+b) x^2} \, dx,x,\tanh (c+d x)\right )}{8 a^2 (a-b)^4 d}\\ &=\frac {b^2 \left (48 a^2-16 a b+3 b^2\right ) \tanh ^{-1}\left (\frac {\sqrt {a-b} \tanh (c+d x)}{\sqrt {a}}\right )}{8 a^{5/2} (a-b)^{9/2} d}+\frac {(a-4 b) \tanh (c+d x)}{(a-b)^4 d}-\frac {\tanh ^3(c+d x)}{3 (a-b)^3 d}+\frac {b^4 \tanh (c+d x)}{4 a (a-b)^4 d \left (a-(a-b) \tanh ^2(c+d x)\right )^2}-\frac {(16 a-3 b) b^3 \tanh (c+d x)}{8 a^2 (a-b)^4 d \left (a-(a-b) \tanh ^2(c+d x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 2.02, size = 169, normalized size = 0.83 \begin {gather*} \frac {\frac {3 b^2 \left (48 a^2-16 a b+3 b^2\right ) \tanh ^{-1}\left (\frac {\sqrt {a-b} \tanh (c+d x)}{\sqrt {a}}\right )}{a^{5/2} (a-b)^{9/2}}+\frac {\frac {3 b^3 \left (-32 a^2+24 a b-3 b^2+b (-14 a+3 b) \cosh (2 (c+d x))\right ) \sinh (2 (c+d x))}{a^2 (2 a-b+b \cosh (2 (c+d x)))^2}+8 \left (2 a-11 b+(a-b) \text {sech}^2(c+d x)\right ) \tanh (c+d x)}{(a-b)^4}}{24 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(444\) vs.
\(2(187)=374\).
time = 2.08, size = 445, normalized size = 2.19 Too large to display
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 9388 vs.
\(2 (189) = 378\).
time = 0.56, size = 19032, normalized size = 93.75 \begin {gather*} \text {too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 436 vs.
\(2 (189) = 378\).
time = 0.94, size = 436, normalized size = 2.15 \begin {gather*} \frac {\frac {3 \, {\left (48 \, a^{2} b^{2} - 16 \, a b^{3} + 3 \, b^{4}\right )} \arctan \left (\frac {b e^{\left (2 \, d x + 2 \, c\right )} + 2 \, a - b}{2 \, \sqrt {-a^{2} + a b}}\right )}{{\left (a^{6} - 4 \, a^{5} b + 6 \, a^{4} b^{2} - 4 \, a^{3} b^{3} + a^{2} b^{4}\right )} \sqrt {-a^{2} + a b}} + \frac {6 \, {\left (24 \, a^{2} b^{3} e^{\left (6 \, d x + 6 \, c\right )} - 16 \, a b^{4} e^{\left (6 \, d x + 6 \, c\right )} + 3 \, b^{5} e^{\left (6 \, d x + 6 \, c\right )} + 112 \, a^{3} b^{2} e^{\left (4 \, d x + 4 \, c\right )} - 136 \, a^{2} b^{3} e^{\left (4 \, d x + 4 \, c\right )} + 66 \, a b^{4} e^{\left (4 \, d x + 4 \, c\right )} - 9 \, b^{5} e^{\left (4 \, d x + 4 \, c\right )} + 88 \, a^{2} b^{3} e^{\left (2 \, d x + 2 \, c\right )} - 64 \, a b^{4} e^{\left (2 \, d x + 2 \, c\right )} + 9 \, b^{5} e^{\left (2 \, d x + 2 \, c\right )} + 14 \, a b^{4} - 3 \, b^{5}\right )}}{{\left (a^{6} - 4 \, a^{5} b + 6 \, a^{4} b^{2} - 4 \, a^{3} b^{3} + a^{2} b^{4}\right )} {\left (b e^{\left (4 \, d x + 4 \, c\right )} + 4 \, a e^{\left (2 \, d x + 2 \, c\right )} - 2 \, b e^{\left (2 \, d x + 2 \, c\right )} + b\right )}^{2}} + \frac {16 \, {\left (9 \, b e^{\left (4 \, d x + 4 \, c\right )} - 6 \, a e^{\left (2 \, d x + 2 \, c\right )} + 24 \, b e^{\left (2 \, d x + 2 \, c\right )} - 2 \, a + 11 \, b\right )}}{{\left (a^{4} - 4 \, a^{3} b + 6 \, a^{2} b^{2} - 4 \, a b^{3} + b^{4}\right )} {\left (e^{\left (2 \, d x + 2 \, c\right )} + 1\right )}^{3}}}{24 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {1}{{\mathrm {cosh}\left (c+d\,x\right )}^4\,{\left (b\,{\mathrm {sinh}\left (c+d\,x\right )}^2+a\right )}^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________